package com.youmu.shop.system.bean;

import java.math.BigDecimal;
import java.util.Date;

public class MemberRank {
    /**
     * 会员等级主键
     * 表字段 : xx_member_rank.id
     */
    private Long id;

    /**
     * 会员等级名称
     * 表字段 : xx_member_rank.name
     */
    private String name;

    /**
     * 会员等级
     * 表字段 : xx_member_rank.scale
     */
    private Integer scale;

    /**
     * 消费金额门槛
     * 表字段 : xx_member_rank.amount
     */
    private Integer amount;

    /**
     * 是否为默认等级
     * 表字段 : xx_member_rank.is_default
     */
    private Boolean isDefault;

    /**
     * 会员等级是否特殊
     * 表字段 : xx_member_rank.is_special
     */
    private Boolean isSpecial;

    /**
     * 会员等级创建时间
     * 表字段 : xx_member_rank.create_date
     */
    private Date createDate;

    /**
     * 会员等级最新修改时间
     * 表字段 : xx_member_rank.modify_date
     */
    private Date modifyDate;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_member_rank
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getScale() {
		return scale;
	}

	public void setScale(Integer scale) {
		this.scale = scale;
	}
	
    public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Boolean getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }

    public Boolean getIsSpecial() {
        return isSpecial;
    }

    public void setIsSpecial(Boolean isSpecial) {
        this.isSpecial = isSpecial;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", scale=").append(scale);
        sb.append(", amount=").append(amount);
        sb.append(", isDefault=").append(isDefault);
        sb.append(", isSpecial=").append(isSpecial);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}